package com.joinlabs.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.joinlabs.entity.PageBean;
import com.joinlabs.entity.WeiboUser;

public interface WeiboUserMapper {

	/**
	 * 后台查询所有微博
	 * @return
	 */
	List<WeiboUser> selectAllWeibos();
	
	//后台查询总记录
	int selectWeiboCount();
	
	//后台分页
	List<WeiboUser> selectWeibosPage(@Param("page") PageBean pageBean);
	
	int deleteByPrimaryKey(Long weiboId);
	
	WeiboUser selectWeibos(long weiboId);//后台显示一条动态
}
